package cate.game.role.farm.forbidden.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdForbidden;
import cate.game.role.Role;
import cate.game.role.farm.PlayTimes;
import cate.game.role.farm.forbidden.MyForbiddenZone;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "我的种族禁地部分数据更新 の 返回")
public class ForbiddenDataUpdateResp implements MsgOutput {
    @NoteField(value = "正在战斗")
    public boolean fighting;

    @NoteField(value = "当前/最近一次 所挑战的圣殿ID")
    public int curRoomId;

    @NoteField(value = "本周de挑战次数记录")
    public PlayTimes playTimes;
    
    
    public ForbiddenDataUpdateResp(Role role) {
        MyForbiddenZone data = role.getFarm().forbidden;
        this.fighting = data.fighting;
        this.curRoomId = data.curRoomId;
        this.playTimes = data.playTimes;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdForbidden.FORBIDDEN_DATA_UPDATE_RESP;
    }

    public ForbiddenDataUpdateResp() {
    }
}
